import React,{Component} from 'react';
import {Link} from 'react-router-dom';
import {matchRoutes,renderRoutes} from 'react-router-config';
export default class User extends Component{
	render() {
		return (
			<div className="row">
				<div className="col-md-3">
					<ul className="list-group">
						<li className="list-group-item"><Link to="/user/list">用户列表</Link></li>
						<li className="list-group-item"><Link to="/user/add">添加用户</Link></li>
					</ul>
				</div>
				<div className="col-md-9">
					{this.props.route&&renderRoutes(this.props.route.routes)}
				</div>
			</div>
		)
	}
}